package com.yjz.designpattern.singletonpattern.enumSingleTon;

public class EnumSingletonTest {
  public static void main(String[] args) {
    EnumSingleton obj1 = EnumSingleton.getInstance();
    EnumSingleton obj2 = EnumSingleton.getInstance();
    //输出结果：obj1==obj2?true
    System.out.println("obj1==obj2?" + (obj1 == obj2));


  }

}
